package org.gten.gegedexin.pojo;
/**
 * @author Eric
 * @date 2023/6/6
 * user表记录账号密码
 * username 用户名 -- 主键
 * password 密码
 * nickname 别名
 */


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "account")
public class UserPojo {
    @TableId(value = "username", type = IdType.NONE)
    private String username;

    @TableField(value = "password", exist = true)
    private String password;

    @TableField(value = "nickname", exist = true)
    private String nickname;

    @Override
    public String toString() {
        return "UserPojo{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", infoId=" + infoId +
                '}';
    }

    @TableField(value = "info_id")
    private int infoId;
}